import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    searchResult:{},
    goodList:{},
    id:"",
    nums:""
  },
  mutations: {
    updated(state,val) {
      state.searchResult = val
    },
    upOrder(state,val) {
      state.goodList = val
    },
    ids(state,val) {
      state.id = val
    },
    totalNum(state,val){
      state.nums = val
    }
  },
  actions: {
  },
  modules: {
  }
})
